
import { Entity, PrimaryUuid, MemberId, DateTime, Remark, CardCanUseTo, CouponLogId, CouponUseLogStatus, AddressDetail } from '@sker/core'

@Entity({ name: 'coupon_use_log', comment: '优惠券使用记录' })
export class CouponUseLog {
    @PrimaryUuid({
        primaryKeyConstraintName: "PK_COUPON_USE_LOG_ID"
    })
    id!: string;

    @MemberId({})
    member_id!: string;

    @AddressDetail({ nullable: true, default: {}, comment: '收货地址' })
    addressDetail: any;

    @CouponLogId()
    log_id!: string;

    @Remark()
    remark: string;

    @CardCanUseTo({ comment: '使用场景' })
    use_to: string;

    @DateTime({ comment: '最后使用时间' })
    use_date: Date;
}
